package cn.itsource.feign.file;


import cn.itsource.fallback.file.FileFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "file-server",fallback = FileFeignFallBack.class)
public interface FileFeignClient {

    @PostMapping("file/upload")
    public String fileUpload(@RequestParam("fileName") MultipartFile multipartFile);
}
